import React from 'react';
import {MantineProvider} from '@mantine/core';
import {useAppSelector} from '@store/hooks';
import Routes from '@routers';

/**
 * 首页
 * @return {React.ReactElement}
 */
function App(): React.ReactElement {
    const theme = useAppSelector((state) => state.systemTheme);
    return (
        <MantineProvider theme={theme} withGlobalStyles withNormalizeCSS>
            <Routes />
        </MantineProvider>
    );
}

export default App;
